HZHControls控件库: HZHControls控件库,c#的winform自定义控件,对触屏具有更好的操作支持,项目是基于framework4.0,完全原生控件开发,没有使用任何第三方控件,你可以放心的用在你的项目中(winfromcontrol/winformcontrol/.net)。还有更丰富的工业控件持续增加中~~~ 您所在的位置:网站首页 winform 自绘控件 交互 HZHControls控件库: HZHControls控件库,c#的winform自定义控件,对触屏具有更好的操作支持,项目是基于framework4.0,完全原生控件开发,没有使用任何第三方控件,你可以放心的用在你的项目中(winfromcontrol/winformcontrol/.net)。还有更丰富的工业控件持续增加中~~~

HZHControls控件库: HZHControls控件库,c#的winform自定义控件,对触屏具有更好的操作支持,项目是基于framework4.0,完全原生控件开发,没有使用任何第三方控件,你可以放心的用在你的项目中(winfromcontrol/winformcontrol/.net)。还有更丰富的工业控件持续增加中~~~

2023-08-14 10:03| 来源: 网络整理| 查看: 265

Website http://www.hzhcontrols.com/ NetWinformCustom Controls My english is poor. The English below is from Google Translate. Please forgive me. 中文README.md(码云) Introduction

c#winform custom control, has better operation support for touch screen, the project is based on framework4.0, completely native control development, do not use any third-party controls, you can use it safely in your project .

Blog address: https://www.cnblogs.com/bfyx

Code Cloud: https://gitee.com/kwwwvagaa/net_winform_custom_control.git

Welcome to exchange discussion: Click to join QQ group 568015492

If my code is useful to you, please reward me, thank you, your reward is my motivation.

输入图片说明 输入图片说明

The source code is only for exchange learning. The open source agreement is Apache License 2.0. For commercial use, please contact the group owner. Come here, come to a Star and let's go. NuGet Install-Package HZH_Controls The content listed below is only part of the control, more control effects, please download the source code to see the demo running effect!

输入图片说明 输入图片说明

Sample 1, prompt window renderings

sample image sample image

If (FrmDialog.ShowDialog(this, "Do you want to display a prompt box without a cancel button?", "Mode Form Test", true) == System.Windows.Forms.DialogResult.OK) {     FrmDialog.ShowDialog(this, "This is a prompt box without a cancel button", "Mode Form Test"); } 2, multiple input form

sample image

 FrmInputs frm = new FrmInputs("Dynamic Multi-Input Form Test",                 New string[] { "name", "telephone", "ID number", "address" },                 New Dictionary() { { "Phone", HZH_Controls.TextInputType.Regex }, { "ID number", HZH_Controls.TextInputType.Regex } },                 New Dictionary() { { "phone", "^1\\d{10}$" }, { "ID number", "^\\d{18}$" } },                 New Dictionary() { { "phone", KeyBoardType.UCKeyBorderNum }, { "ID number", KeyBoardType.UCKeyBorderNum } },                 New List() { "name", "telephone", "identity number" }); frm.ShowDialog(this); /// /// Function Description: Constructor /// Author: HZH /// Creation date: 2019-08-05 10:57:26 /// Task number: POS /// /// form title /// Input name /// Input type corresponds to input type, key: input item name, if no default control input is not set /// The input item corresponds to the regular rule, valid when imTypes=Regex, key: input item name, if you do not set the default no control input /// text box keyboard, key: input item name, if you do not set the default English keyboard /// Required entry name /// Input default value, key: input name Public FrmInputs(     String strTitle,     String[] inPutLabels,     Dictionary inTypes = null,     Dictionary regexs = null,     Dictionary keyBoards = null,     List mastInputs = null,     Dictionary defaultValues ​​= null) 3, Temp1 form

sample image

/ / New form FrmTemp1Test inherits HZH_Controls.Forms.FrmTemp1 FrmTemp1Test frm = new FrmTemp1Test(); frm.ShowDialog(this); 4, there is a form to confirm cancellation 1

sample image

/ / New form FrmOKCancel1Test inherits HZH_Controls.Forms.FrmWithOKCancel1 FrmOKCancel1Test frm = new FrmOKCancel1Test(); frm.ShowDialog(this); 5, there is a form to confirm cancellation 2

sample image

/ / New form FrmOKCancel2Test inherits HZH_Controls.Forms.FrmWithOKCancel2 FrmOKCancel2Test frm = new FrmOKCancel2Test(); frm.ShowDialog(this); 6, single title form

sample image

/ / New form FrmWithTitleTest inherits HZH_Controls.Forms.FrmWithTitle FrmWithTitleTest frm = new FrmWithTitleTest(); frm.ShowDialog(this); 7, control

输入图片说明

Text box keyboard effect

sample image sample image sample image

`Handwriting input requires the handwriting support of Sogou, please copy the HandInput folder to the running directory.

Time control effect

sample image sample image sample image

Drop-down list data binding * / / Use the method is similar to the native ComboBox List lstCom = new List(); For (int i = 0; i


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有